package com.xxh.dao;

import com.xxh.entity.Tag;
import lombok.Data;
import org.mybatis.spring.SqlSessionTemplate;

@Data
public class TagDaoImpl implements TagDao{

    SqlSessionTemplate sqlSessionTemplate;

    @Override
    public int deleteByPrimaryKey(Integer id) {
        return 0;
    }

    @Override
    public int insert(Tag record) {
        return 0;
    }

    @Override
    public int insertSelective(Tag record) {
        return 0;
    }

    @Override
    public Tag selectByPrimaryKey(Integer id) {
        TagDao mapper = sqlSessionTemplate.getMapper(TagDao.class);
        return mapper.selectByPrimaryKey(id);
    }

    @Override
    public int updateByPrimaryKeySelective(Tag record) {
        return 0;
    }

    @Override
    public int updateByPrimaryKey(Tag record) {
        return 0;
    }
}
